package com.cmas.platform.domain;

import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 用户记录表对象 user_record
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-04-28
 */
@Data
public class UserRecord extends BasePlusEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    @LogField
    @FieldRemark(name = "用户ID",field = "userId")
    private String userId;

    /** 地区ID */
    @Excel(name = "地区ID")
    @LogField
    @FieldRemark(name = "地区ID",field = "regionId")
    private String regionId;

    /** 帖子发表数 */
    @Excel(name = "帖子发表数")
    @LogField
    @FieldRemark(name = "帖子发表数",field = "publishPostNumber")
    private Integer publishPostNumber;

    /** 评论发表数 */
    @Excel(name = "评论发表数")
    @LogField
    @FieldRemark(name = "评论发表数",field = "publishCommentNumber")
    private Integer publishCommentNumber;

    /** 帖子浏览数 */
    @Excel(name = "帖子浏览数")
    @LogField
    @FieldRemark(name = "帖子浏览数",field = "postNumber")
    private Long postNumber;

    /** 评论数 */
    @Excel(name = "评论数")
    @LogField
    @FieldRemark(name = "评论数",field = "commentNumber")
    private Integer commentNumber;

    /** 点赞数 */
    @Excel(name = "点赞数")
    @LogField
    @FieldRemark(name = "点赞数",field = "likeNumber")
    private Integer likeNumber;

    /** 收藏数 */
    @LogField
    @FieldRemark(name = "收藏数",field = "collectNumber")
    private Integer collectNumber;

    /** 被评论数 */
    @LogField
    @FieldRemark(name = "被评论数",field = "beCommentNumber")
    private Integer beCommentNumber;

    /** 被赞数 */
    @LogField
    @FieldRemark(name = "被赞数",field = "beLikeNumber")
    private Integer beLikeNumber;

    /** 被收藏数 */
    @LogField
    @FieldRemark(name = "被收藏数",field = "beCollectNumber")
    private Integer beCollectNumber;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("regionId", getRegionId())
            .append("publishPostNumber", getPublishPostNumber())
            .append("publishCommentNumber", getPublishCommentNumber())
            .append("postNumber", getPostNumber())
            .append("commentNumber", getCommentNumber())
            .append("likeNumber", getLikeNumber())
            .append("collectNumber", getCollectNumber())
            .append("beCommentNumber", getBeCommentNumber())
            .append("beLikeNumber", getBeLikeNumber())
            .append("beCollectNumber", getBeCollectNumber())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
